<template>
  <div class="page-header">
    <el-row :gutter="20" align="middle">
      <el-col>
        <h2>{{ title }}</h2>
      </el-col>
      <el-col :align="`right`">
        <slot name="actions"></slot>
      </el-col>
    </el-row>
  </div>
</template>

<script setup>
defineProps({
  title: {
    type: String,
    required: true
  }
})
</script>

<style scoped lang="scss">
.page-header {
  padding: 10px 0;
  margin-bottom: 15px;
  h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
  }
}
</style>